import { defineStore } from 'pinia'
import { ref } from 'vue'

export const useCurrentStore = defineStore(
  'current',
  () => {
    const currentId = ref(-1)
    const setId = (id: number) => {
      currentId.value = id
    }
    return { currentId, setId }
  },
  {}
)
